<!DOCTYPE html>
<?php $msg = $request->getAttribute('msgUsuario'); ?>

<html lang="pt-br">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>SIAGE</title>
		<link href="public/css/bootstrap.css" rel="stylesheet" media="screen">
		<link href="public/css/fontawesome.css" rel="stylesheet">
		<link href="public/css/style.css" rel="stylesheet" media="screen">
		<script src="public/js/jquery.js"></script>
		<script src="public/js/mask.js"></script>
                <script src="public/js/funcoes.js"></script>
                <script src="public/js/bootstrap.min.js"></script>

</head>
<body>

    <div id="container">
        <!-- Mensagem para o usuário -->
        <div id="mensagem">
            <?php if (isset($msg['status']) && $msg['status'] == 'erro' ):?>
            <div class="alert alert-error">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <strong>Atenção!</strong> <?php echo  $msg['mensagem']; ?>
            </div>
            <?php endif ?>
            <?php if (isset($msg['status']) && $msg['status'] == 'sucesso' ):?>
            <div class="alert alert-success">
                    <button type="button" class="close" data-dismiss="alert">&times;</button>
                    <?php echo  $msg['mensagem']; ?>
            </div>
            <?php endif ?>
        </div>
        
        <div id="header">
            <h1>SIAGE</h1>
        </div>
        
        <hr></hr>
        
        <div id="conteudo">
            <?php
                if ( $request->getAttribute('viewIndex') != '' ) {
                     include $request->getAttribute('viewIndex'); 	
                }
            ?>
        </div>
        
        <hr></hr>
        
        <div id="foot">
            Desenvolvido por Thales - &COPY;Todos os direitos reservados.	
        </div>
    </div>
</body>
</html>
